#!/bin/sh

#slackware...
[ -d etc/rc.d ] && rm -rf etc/rc.d

rm -rf usr/share/samba/setup

cat > etc/smb.conf <<EOF
#this is a very simple smb.conf to get you started
#coutesy rcrsn51 and gcmartin
[global]
	
	workgroup = Workgroup
	server string = Puppy Samba Server
	security = user
	map to guest = Bad Password
	printing = cups
	printcap name = cups
	load printers = yes
	

[puppyshare]
	path = /mnt/home
	writable = yes

[printers]
	comment = All Printers
	path = /var/spool/samba
	browseable = no
	guest ok = yes
	writable = no
	printable = yes
EOF

if [ -f etc/samba/smb.conf ];then
	mv -f etc/smb.conf etc/samba/smb.conf
	ln -s samba/smb.conf etc/smb.conf
fi

if [ -f usr/share/samba/smb.conf ] ; then
	mv usr/share/samba/smb.conf etc/smb.conf.sample
	ln -sv ../../../etc/smb.conf.sample usr/share/samba/smb.conf.sample
fi

mkdir -p usr/share/samba
ln -sv ../../../etc/smb.conf usr/share/samba/smb.conf

### END ###